import { fileURLToPath, URL } from 'node:url';
import stylelint from 'vite-plugin-stylelint';

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config/

export default defineConfig({
	plugins: [
		vue(),
		// stylelint({
		// fix: true,
		// configFile: './.stylelintrc.json'
		// })
	],
	resolve: {
		alias: {
			'@': fileURLToPath(new URL('./src', import.meta.url)),
		}
	},
	server: {
		host: true,
		port: 8080
	},
	preview: {
		host: true,
		port: 8080
	},
});
